gtkwindow: Use actions from focused widget to activate accel
authorCarlos Soriano <carlos.sorian89@gmail.com>
Wed, 3 Dec 2014 14:53:59 +0000 (15:53 +0100)
committerChristian Hergert <christian@hergert.me>
Tue, 9 Dec 2014 04:19:33 +0000 (20:19 -0800)
commit235837ad4932e60f46db97934be1dfb5200e185e
treeb7dbf8299c7dad3c0e0ba8982ce4e2d646e560cb
parent17fec70022c30695ca9a1cbaab4494f92668a317
gtkwindow: Use actions from focused widget to activate accel

Currently we only take into account the window GActionGroup for
activating the accels.

However, the application could have some custom GActionGroup in the
chain of focused widgets that could want to activate some action if
some accel is activated while that widget is focused.

To allow applications to set accels on widgets that use custom
GActionGroups, simply use the muxer of the focused widget, which
already contains the actions of the parents.

https://bugzilla.gnome.org/show_bug.cgi?id=740682
gtk/gtkactionhelper.c
gtk/gtkmenusectionbox.c
gtk/gtkmenushell.c
gtk/gtkwidget.c
gtk/gtkwidgetprivate.h
gtk/gtkwindow.c